﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using BAL;

namespace blog
{
    public partial class Regist : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void submit_Click(object sender, EventArgs e)
        {
            string username = this.username.Text;
            string password = this.password1.Text;
            DoUser.InsertUser(username, password);
            Response.Redirect("Login.aspx");
        }

    
    }
}